package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.BaseAttribute;
import com.atguigu.tingshu.model.album.BaseCategory1;
import com.atguigu.tingshu.model.album.BaseCategory3;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface BaseCategory1Mapper extends BaseMapper<BaseCategory1> {

    /**
     * 查询一级分类下的所有三级分类
     *
     * @param categoryId
     * @return
     * @author daiyuling
     * @date 2025/10/20
     */
    List<BaseCategory3> findTopBaseCategory3(Long categoryId);

    /**
     * 描述：查询一级分类下的所有属性
     *
     * @param category1Id
     * @return
     * @author daiyuling
     * @date 2025/10/20
     */
    List<BaseAttribute> findAttribute(Long category1Id);
}
